public class Demo43 {
    public static void main(String[] args) throws InterruptedException {
        Thread t=new Thread(()->{
            System.out.println("hello thread");
        });
        System.out.println( t.getState()); //获取t线程的状态
        t.start();

    }
}
